package com.RLFZ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.RLFZ.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * (user)数据Mapper
 *
 * @author zh
 * @since 2022-08-25 17:16:58
 * @description 
*/
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("select id,username,password,sex,age,address,img,phone,card,ban_ji_id,xue_yuan_id,teacher_id,salt from user where username=#{username} and password=#{password}")
    User login(@Param("username") String username, @Param("password") String password);
}
